<?php session_start(); ?>

<!DOCTYPE html>
<html>	
	<head>
        <title>Cameleon events - Sorties et Evénements en France</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" href="../Vue/CSS/contact.css" />
    </head>
	
	<body>
		<?php 
			if(isset($_POST['pseudo']) && isset($_POST['statut'])) {
				$headers = 'Content-type: text/html; charset=UTF-8'."\r\n".'From: no-reply@cameleonevents.fr'."\r\n";
				$to = 'eva.benoit75@orange.fr';
				$objet = '[Cameleon Events] Nouveau message - '.$_POST['objet'];
				$message = 'L\''.$_POST['statut'].' '.$_POST['pseudo'].' vous a envoyé un message : <br />'.nl2br($_POST['message']);

				mail($to, $objet, $message, $headers);
				$statut_mail = "Envoyé";
			}
		?>
	
		<?php include('../Vue/contact.php'); ?>
	</body>
</html>